import request from '../utils/request'
// 关注作者
export const followedAuthorAPI = ({ aut_id }) => {
  return request({
    url: '/v1_0/user/followings',
    method: 'POST',
    data: {
      target: aut_id
    }
  })
}
// 取消关注作者
export const unfollowedAuthorAPI = ({ id }) => {
  return request({
    url: `/v1_0/user/followings/${id}`,
    method: 'DELETE'
  })
}
// 喜欢文章接口
export const articleLikingAPI = ({ art_id }) => {
  return request({
    url: '/v1_0/article/likings',
    method: 'POST',
    data: {
      target: art_id
    }
  })
}
// 不感兴趣接口
export const articleDisLikingAPI = ({ id }) => {
  return request({
    url: `/v1_0/article/likings/${id}`,
    method: 'DELETE'
  })
}
